.class public final Lh;
.super Ljava/io/InputStream;


# instance fields
.field public B:I

.field public C:Z

.field public Code:Lad;

.field public I:I

.field public J:Z

.field public Z:Z

.field public a:[B

.field public b:I

.field public c:I

.field public d:I

.field private e:[B


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/io/InputStream;-><init>()V

    const/4 v0, 0x1

    new-array v0, v0, [B

    iput-object v0, p0, Lh;->e:[B

    return-void
.end method


# virtual methods
.method public final B()Z
    .locals 1

    iget-object v0, p0, Lh;->Code:Lad;

    iget-boolean v0, v0, Lad;->a:Z

    return v0
.end method

.method public final Code()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Lh;->close()V

    const/16 v0, 0x20

    iput v0, p0, Lh;->B:I

    const/4 v0, 0x1

    invoke-static {v0}, Ln;->I(Z)V

    return-void
.end method

.method public final Code(Z)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x1

    iput-boolean v0, p0, Lh;->Z:Z

    if-eqz p1, :cond_0

    invoke-virtual {p0}, Lh;->close()V

    :cond_0
    return-void
.end method

.method public final I()V
    .locals 1

    iget-object v0, p0, Lh;->Code:Lad;

    invoke-virtual {v0, p0}, Lad;->I(Lh;)V

    return-void
.end method

.method public final J()Ljava/lang/String;
    .locals 1

    iget-boolean v0, p0, Lh;->C:Z

    if-eqz v0, :cond_0

    const-string v0, "Timeout"

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lh;->Code:Lad;

    iget-object v0, v0, Lad;->d:Ljava/lang/String;

    goto :goto_0
.end method

.method public final Z()I
    .locals 2

    iget v0, p0, Lh;->B:I

    sget-boolean v1, Lad;->I:Z

    if-eqz v1, :cond_0

    const/16 v1, 0x10

    :goto_0
    or-int/2addr v0, v1

    return v0

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public final close()V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iget-object v0, p0, Lh;->Code:Lad;

    iget v1, p0, Lh;->I:I

    const/4 v2, 0x6

    invoke-virtual {v0, v1, v2}, Lad;->Code(II)V

    return-void
.end method

.method public final read()I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v2, 0x0

    iget-object v0, p0, Lh;->e:[B

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v2, v1}, Lh;->read([BII)I

    iget-object v0, p0, Lh;->e:[B

    aget-byte v0, v0, v2

    and-int/lit16 v0, v0, 0xff

    return v0
.end method

.method public final read([BII)I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iput p2, p0, Lh;->b:I

    iput p3, p0, Lh;->c:I

    iput-object p1, p0, Lh;->a:[B

    invoke-static {p0}, Ln;->I(Ljava/lang/Object;)V

    :goto_0
    iget-boolean v0, p0, Lh;->Z:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lh;->a:[B

    if-eqz v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :cond_0
    iget-object v0, p0, Lh;->a:[B

    if-nez v0, :cond_1

    iget v0, p0, Lh;->c:I

    return v0

    :cond_1
    iget-object v0, p0, Lh;->Code:Lad;

    invoke-virtual {v0, p0}, Lad;->Code(Lh;)V

    const/16 v0, 0x3e8

    invoke-static {p0, v0}, Ln;->Code(Ljava/lang/Object;I)V

    goto :goto_0
.end method
